﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace ADONETDataServicesExtension.Parsing
{
    public class DynamicOrdering
    {
        private readonly bool ascending;
        private readonly Expression selector;

        internal DynamicOrdering(Expression selector, bool ascending)
        {
            this.selector = selector;
            this.ascending = ascending;
        }

        internal bool Ascending
        {
            get
            {
                return this.ascending;
            }
        }

        internal Expression Selector
        {
            get
            {
                return this.selector;
            }
        }
    }
}
